<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::PAlgebraModDerived&lt; type &gt; Class Template Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classhelib_1_1_p_algebra_mod_derived-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::PAlgebraModDerived&lt; type &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A concrete instantiation of the virtual class.  
 <a href="classhelib_1_1_p_algebra_mod_derived.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_p_algebra_8h_source.html">PAlgebra.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad04d8b9a2004e0c8e6fe79993b3af266"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#ad04d8b9a2004e0c8e6fe79993b3af266">PAlgebraModDerived</a> (const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;zMStar, long r)</td></tr>
<tr class="separator:ad04d8b9a2004e0c8e6fe79993b3af266"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69f13c0ea26e5965d55ecae8e4ca936f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a69f13c0ea26e5965d55ecae8e4ca936f">PAlgebraModDerived</a> (const <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a> &amp;other)</td></tr>
<tr class="separator:a69f13c0ea26e5965d55ecae8e4ca936f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a998b31a5d4f8f114b4582d5035decd63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a998b31a5d4f8f114b4582d5035decd63">operator=</a> (const <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a> &amp;other)</td></tr>
<tr class="separator:a998b31a5d4f8f114b4582d5035decd63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6725ea77f4da18fb3cb4da5d77253e8c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classhelib_1_1_p_algebra_mod_base.html">PAlgebraModBase</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a6725ea77f4da18fb3cb4da5d77253e8c">clone</a> () const override</td></tr>
<tr class="memdesc:a6725ea77f4da18fb3cb4da5d77253e8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to a "clone".  <a href="classhelib_1_1_p_algebra_mod_derived.html#a6725ea77f4da18fb3cb4da5d77253e8c">More...</a><br /></td></tr>
<tr class="separator:a6725ea77f4da18fb3cb4da5d77253e8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59d05e06d579ef86cc7d053d43e9717b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a59d05e06d579ef86cc7d053d43e9717b">getTag</a> () const override</td></tr>
<tr class="memdesc:a59d05e06d579ef86cc7d053d43e9717b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the type tag: PA_GF2_tag or PA_zz_p_tag.  <a href="classhelib_1_1_p_algebra_mod_derived.html#a59d05e06d579ef86cc7d053d43e9717b">More...</a><br /></td></tr>
<tr class="separator:a59d05e06d579ef86cc7d053d43e9717b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa63328efb58148204ed8a95287be7c19"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#aa63328efb58148204ed8a95287be7c19">getZMStar</a> () const override</td></tr>
<tr class="memdesc:aa63328efb58148204ed8a95287be7c19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns reference to underlying <a class="el" href="classhelib_1_1_p_algebra.html" title="The structure of (Z/mZ)* /(p)">PAlgebra</a> object.  <a href="classhelib_1_1_p_algebra_mod_derived.html#aa63328efb58148204ed8a95287be7c19">More...</a><br /></td></tr>
<tr class="separator:aa63328efb58148204ed8a95287be7c19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14ea53104683d77545f74fc01046bf37"><td class="memItemLeft" align="right" valign="top">virtual const std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a14ea53104683d77545f74fc01046bf37">getFactorsOverZZ</a> () const override</td></tr>
<tr class="memdesc:a14ea53104683d77545f74fc01046bf37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns reference to the factorization of Phi_m(X) mod p^r, but as ZZX's.  <a href="classhelib_1_1_p_algebra_mod_derived.html#a14ea53104683d77545f74fc01046bf37">More...</a><br /></td></tr>
<tr class="separator:a14ea53104683d77545f74fc01046bf37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1664ff2b064cf1d7e8c0aca13433b15d"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a1664ff2b064cf1d7e8c0aca13433b15d">getR</a> () const override</td></tr>
<tr class="memdesc:a1664ff2b064cf1d7e8c0aca13433b15d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The value r.  <a href="classhelib_1_1_p_algebra_mod_derived.html#a1664ff2b064cf1d7e8c0aca13433b15d">More...</a><br /></td></tr>
<tr class="separator:a1664ff2b064cf1d7e8c0aca13433b15d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c496a6f985fecf61f9a117d6c605cd6"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a1c496a6f985fecf61f9a117d6c605cd6">getPPowR</a> () const override</td></tr>
<tr class="memdesc:a1c496a6f985fecf61f9a117d6c605cd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">The value p^r.  <a href="classhelib_1_1_p_algebra_mod_derived.html#a1c496a6f985fecf61f9a117d6c605cd6">More...</a><br /></td></tr>
<tr class="separator:a1c496a6f985fecf61f9a117d6c605cd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e923834650c8fedd2139b416edd5950"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a3e923834650c8fedd2139b416edd5950">restoreContext</a> () const override</td></tr>
<tr class="memdesc:a3e923834650c8fedd2139b416edd5950"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restores the <a class="el" href="namespace_n_t_l.html">NTL</a> context for p^r.  <a href="classhelib_1_1_p_algebra_mod_derived.html#a3e923834650c8fedd2139b416edd5950">More...</a><br /></td></tr>
<tr class="separator:a3e923834650c8fedd2139b416edd5950"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a955b41f3cb844015656bdd5b77e29e42"><td class="memItemLeft" align="right" valign="top">const RXModulus &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a955b41f3cb844015656bdd5b77e29e42">getPhimXMod</a> () const</td></tr>
<tr class="memdesc:a955b41f3cb844015656bdd5b77e29e42"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns reference to an RXModulus representing Phi_m(X) (mod p^r)  <a href="classhelib_1_1_p_algebra_mod_derived.html#a955b41f3cb844015656bdd5b77e29e42">More...</a><br /></td></tr>
<tr class="separator:a955b41f3cb844015656bdd5b77e29e42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af85c8c44c0f7b02252d5029b2b78f721"><td class="memItemLeft" align="right" valign="top">const vec_RX &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#af85c8c44c0f7b02252d5029b2b78f721">getFactors</a> () const</td></tr>
<tr class="memdesc:af85c8c44c0f7b02252d5029b2b78f721"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns reference to the factors of Phim_m(X) modulo p^r.  <a href="classhelib_1_1_p_algebra_mod_derived.html#af85c8c44c0f7b02252d5029b2b78f721">More...</a><br /></td></tr>
<tr class="separator:af85c8c44c0f7b02252d5029b2b78f721"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8486232ca5b941fa989f6cde8fe4f822"><td class="memItemLeft" align="right" valign="top">const vec_RX &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a8486232ca5b941fa989f6cde8fe4f822">getCrtCoeffs</a> () const</td></tr>
<tr class="memdesc:a8486232ca5b941fa989f6cde8fe4f822"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the CRT coefficients: element i contains (prod_{j!=i} F_j)^{-1} mod F_i, where F_0 F_1 ... is the factorization of Phi_m(X) mod p^r.  <a href="classhelib_1_1_p_algebra_mod_derived.html#a8486232ca5b941fa989f6cde8fe4f822">More...</a><br /></td></tr>
<tr class="separator:a8486232ca5b941fa989f6cde8fe4f822"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f05b5bdfb5c69e175a1108a20b7e897"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::vector&lt; RX &gt; &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a6f05b5bdfb5c69e175a1108a20b7e897">getMaskTable</a> () const</td></tr>
<tr class="memdesc:a6f05b5bdfb5c69e175a1108a20b7e897"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns ref to maskTable, which is used to implement rotations (in the <a class="el" href="classhelib_1_1_encrypted_array.html" title="A simple wrapper for a smart pointer to an EncryptedArrayBase. This is the interface that higher-leve...">EncryptedArray</a> module).  <a href="classhelib_1_1_p_algebra_mod_derived.html#a6f05b5bdfb5c69e175a1108a20b7e897">More...</a><br /></td></tr>
<tr class="separator:a6f05b5bdfb5c69e175a1108a20b7e897"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bc2cd5d3763efc2f1886cc8a6a6a80c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a4bc2cd5d3763efc2f1886cc8a6a6a80c">getMask_zzX</a> (long i, long j) const override</td></tr>
<tr class="separator:a4bc2cd5d3763efc2f1886cc8a6a6a80c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Embedding in the plaintext slots and decoding back</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>In all the functions below, G must be irreducible mod p, and the order of G must divide the order of p modulo m (as returned by zMStar.getOrdP()). In addition, when r &gt; 1, G must be the monomial X (RX(1, 1)) </p>
</div></td></tr>
<tr class="memitem:a371f9d8e91bc5cecea179fbbb6a12c4f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a371f9d8e91bc5cecea179fbbb6a12c4f">CRT_decompose</a> (std::vector&lt; RX &gt; &amp;crt, const RX &amp;H) const</td></tr>
<tr class="memdesc:a371f9d8e91bc5cecea179fbbb6a12c4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a std::vector crt[] such that crt[i] = H mod Ft (with t = T[i])  <a href="classhelib_1_1_p_algebra_mod_derived.html#a371f9d8e91bc5cecea179fbbb6a12c4f">More...</a><br /></td></tr>
<tr class="separator:a371f9d8e91bc5cecea179fbbb6a12c4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa19526e11996167ac5fd039771a68293"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#aa19526e11996167ac5fd039771a68293">CRT_reconstruct</a> (RX &amp;H, std::vector&lt; RX &gt; &amp;crt) const</td></tr>
<tr class="memdesc:aa19526e11996167ac5fd039771a68293"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns H in R[X]/Phi_m(X) s.t. for every i&lt;nSlots and t=T[i], we have H == crt[i] (mod Ft)  <a href="classhelib_1_1_p_algebra_mod_derived.html#aa19526e11996167ac5fd039771a68293">More...</a><br /></td></tr>
<tr class="separator:aa19526e11996167ac5fd039771a68293"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b29b31503217f41ecf84e06bd30c908"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a8b29b31503217f41ecf84e06bd30c908">mapToSlots</a> (<a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;mappingData, const RX &amp;G) const</td></tr>
<tr class="memdesc:a8b29b31503217f41ecf84e06bd30c908"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the maps for all the slots. In the current implementation, we if r &gt; 1, then we must have either deg(G) == 1 or G == factors[0].  <a href="classhelib_1_1_p_algebra_mod_derived.html#a8b29b31503217f41ecf84e06bd30c908">More...</a><br /></td></tr>
<tr class="separator:a8b29b31503217f41ecf84e06bd30c908"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9f92e66f4d88cf8996a50e48bcecc27"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#ad9f92e66f4d88cf8996a50e48bcecc27">embedInAllSlots</a> (RX &amp;H, const RX &amp;alpha, const <a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;mappingData) const</td></tr>
<tr class="memdesc:ad9f92e66f4d88cf8996a50e48bcecc27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns H in R[X]/Phi_m(X) s.t. for every t in T, the element Ht = (H mod Ft) in R[X]/Ft(X) represents the same element as alpha in R[X]/G(X).  <a href="classhelib_1_1_p_algebra_mod_derived.html#ad9f92e66f4d88cf8996a50e48bcecc27">More...</a><br /></td></tr>
<tr class="separator:ad9f92e66f4d88cf8996a50e48bcecc27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b4d5026fe299c45c9d68a76f3ea35e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a2b4d5026fe299c45c9d68a76f3ea35e4">embedInSlots</a> (RX &amp;H, const std::vector&lt; RX &gt; &amp;alphas, const <a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;mappingData) const</td></tr>
<tr class="memdesc:a2b4d5026fe299c45c9d68a76f3ea35e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns H in R[X]/Phi_m(X) s.t. for every t in T, the element Ht = (H mod Ft) in R[X]/Ft(X) represents the same element as alphas[i] in R[X]/G(X).  <a href="classhelib_1_1_p_algebra_mod_derived.html#a2b4d5026fe299c45c9d68a76f3ea35e4">More...</a><br /></td></tr>
<tr class="separator:a2b4d5026fe299c45c9d68a76f3ea35e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70dba3b1110147859f4c8fd96e6fb716"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#a70dba3b1110147859f4c8fd96e6fb716">decodePlaintext</a> (std::vector&lt; RX &gt; &amp;alphas, const RX &amp;ptxt, const <a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;mappingData) const</td></tr>
<tr class="memdesc:a70dba3b1110147859f4c8fd96e6fb716"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an array such that alphas[i] in R[X]/G(X) represent the same element as rt = (H mod Ft) in R[X]/Ft(X) where t=T[i].  <a href="classhelib_1_1_p_algebra_mod_derived.html#a70dba3b1110147859f4c8fd96e6fb716">More...</a><br /></td></tr>
<tr class="separator:a70dba3b1110147859f4c8fd96e6fb716"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afeebe2f4b6e54aea60d2cd85d364712c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html#afeebe2f4b6e54aea60d2cd85d364712c">buildLinPolyCoeffs</a> (std::vector&lt; RX &gt; &amp;C, const std::vector&lt; RX &gt; &amp;L, const <a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;mappingData) const</td></tr>
<tr class="memdesc:afeebe2f4b6e54aea60d2cd85d364712c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a coefficient std::vector C for the linearized polynomial representing M.  <a href="classhelib_1_1_p_algebra_mod_derived.html#afeebe2f4b6e54aea60d2cd85d364712c">More...</a><br /></td></tr>
<tr class="separator:afeebe2f4b6e54aea60d2cd85d364712c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename type&gt;<br />
class helib::PAlgebraModDerived&lt; type &gt;</h3>

<p>A concrete instantiation of the virtual class. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad04d8b9a2004e0c8e6fe79993b3af266"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad04d8b9a2004e0c8e6fe79993b3af266">&#9670;&nbsp;</a></span>PAlgebraModDerived() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::<a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td>
          <td class="paramname"><em>zMStar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a69f13c0ea26e5965d55ecae8e4ca936f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69f13c0ea26e5965d55ecae8e4ca936f">&#9670;&nbsp;</a></span>PAlgebraModDerived() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::<a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="afeebe2f4b6e54aea60d2cd85d364712c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afeebe2f4b6e54aea60d2cd85d364712c">&#9670;&nbsp;</a></span>buildLinPolyCoeffs()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::buildLinPolyCoeffs </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>C</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>L</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>mappingData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a coefficient std::vector C for the linearized polynomial representing M. </p>
<p>For h in Z/(p^r)[X] of degree &lt; d, </p><p class="formulaDsp">
<img class="formulaDsp" alt="\[ M(h(X) mod G) = sum_{i=0}^{d-1} (C[j] mod G) * (h(X^{p^j}) mod G).\]" src="form_5.png" width="305" height="18"/>
</p>
<p> G is assumed to be defined in mappingData, with d = deg(G). L describes a linear map M by describing its action on the standard power basis: M(x^j mod G) = (L[j] mod G), for j = 0..d-1. </p>

</div>
</div>
<a id="a6725ea77f4da18fb3cb4da5d77253e8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6725ea77f4da18fb3cb4da5d77253e8c">&#9670;&nbsp;</a></span>clone()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classhelib_1_1_p_algebra_mod_base.html">PAlgebraModBase</a>* <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a pointer to a "clone". </p>

</div>
</div>
<a id="a371f9d8e91bc5cecea179fbbb6a12c4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a371f9d8e91bc5cecea179fbbb6a12c4f">&#9670;&nbsp;</a></span>CRT_decompose()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::CRT_decompose </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>crt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const RX &amp;&#160;</td>
          <td class="paramname"><em>H</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a std::vector crt[] such that crt[i] = H mod Ft (with t = T[i]) </p>

</div>
</div>
<a id="aa19526e11996167ac5fd039771a68293"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa19526e11996167ac5fd039771a68293">&#9670;&nbsp;</a></span>CRT_reconstruct()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::CRT_reconstruct </td>
          <td>(</td>
          <td class="paramtype">RX &amp;&#160;</td>
          <td class="paramname"><em>H</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>crt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns H in R[X]/Phi_m(X) s.t. for every i&lt;nSlots and t=T[i], we have H == crt[i] (mod Ft) </p>

</div>
</div>
<a id="a70dba3b1110147859f4c8fd96e6fb716"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70dba3b1110147859f4c8fd96e6fb716">&#9670;&nbsp;</a></span>decodePlaintext()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::decodePlaintext </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>alphas</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const RX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>mappingData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return an array such that alphas[i] in R[X]/G(X) represent the same element as rt = (H mod Ft) in R[X]/Ft(X) where t=T[i]. </p>
<p>The mappingData argument should contain the output of mapToSlots(G). </p>

</div>
</div>
<a id="ad9f92e66f4d88cf8996a50e48bcecc27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9f92e66f4d88cf8996a50e48bcecc27">&#9670;&nbsp;</a></span>embedInAllSlots()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::embedInAllSlots </td>
          <td>(</td>
          <td class="paramtype">RX &amp;&#160;</td>
          <td class="paramname"><em>H</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const RX &amp;&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>mappingData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns H in R[X]/Phi_m(X) s.t. for every t in T, the element Ht = (H mod Ft) in R[X]/Ft(X) represents the same element as alpha in R[X]/G(X). </p>
<p>Must have deg(alpha)&lt;deg(G). The mappingData argument should contain the output of mapToSlots(G). </p>

</div>
</div>
<a id="a2b4d5026fe299c45c9d68a76f3ea35e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b4d5026fe299c45c9d68a76f3ea35e4">&#9670;&nbsp;</a></span>embedInSlots()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::embedInSlots </td>
          <td>(</td>
          <td class="paramtype">RX &amp;&#160;</td>
          <td class="paramname"><em>H</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>alphas</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>mappingData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns H in R[X]/Phi_m(X) s.t. for every t in T, the element Ht = (H mod Ft) in R[X]/Ft(X) represents the same element as alphas[i] in R[X]/G(X). </p>
<p>Must have deg(alpha[i])&lt;deg(G). The mappingData argument should contain the output of mapToSlots(G). </p>

</div>
</div>
<a id="a8486232ca5b941fa989f6cde8fe4f822"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8486232ca5b941fa989f6cde8fe4f822">&#9670;&nbsp;</a></span>getCrtCoeffs()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const vec_RX&amp; <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getCrtCoeffs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the CRT coefficients: element i contains (prod_{j!=i} F_j)^{-1} mod F_i, where F_0 F_1 ... is the factorization of Phi_m(X) mod p^r. </p>

</div>
</div>
<a id="af85c8c44c0f7b02252d5029b2b78f721"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af85c8c44c0f7b02252d5029b2b78f721">&#9670;&nbsp;</a></span>getFactors()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const vec_RX&amp; <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getFactors </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns reference to the factors of Phim_m(X) modulo p^r. </p>

</div>
</div>
<a id="a14ea53104683d77545f74fc01046bf37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14ea53104683d77545f74fc01046bf37">&#9670;&nbsp;</a></span>getFactorsOverZZ()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const std::vector&lt;NTL::ZZX&gt;&amp; <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getFactorsOverZZ </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns reference to the factorization of Phi_m(X) mod p^r, but as ZZX's. </p>

</div>
</div>
<a id="a4bc2cd5d3763efc2f1886cc8a6a6a80c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bc2cd5d3763efc2f1886cc8a6a6a80c">&#9670;&nbsp;</a></span>getMask_zzX()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getMask_zzX </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a6f05b5bdfb5c69e175a1108a20b7e897"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f05b5bdfb5c69e175a1108a20b7e897">&#9670;&nbsp;</a></span>getMaskTable()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;std::vector&lt;RX&gt; &gt;&amp; <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getMaskTable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns ref to maskTable, which is used to implement rotations (in the <a class="el" href="classhelib_1_1_encrypted_array.html" title="A simple wrapper for a smart pointer to an EncryptedArrayBase. This is the interface that higher-leve...">EncryptedArray</a> module). </p>
<p><code>maskTable[i][j]</code> is a polynomial representation of a mask that is 1 in all slots whose i'th coordinate is at least j, and 0 elsewhere. We have: </p><pre class="fragment">  maskTable.size() == zMStar.numOfGens()     // # of generators
  for i = 0..maskTable.size()-1:
    maskTable[i].size() == zMStar.OrderOf(i)+1 // order of generator i
</pre> 
</div>
</div>
<a id="a955b41f3cb844015656bdd5b77e29e42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a955b41f3cb844015656bdd5b77e29e42">&#9670;&nbsp;</a></span>getPhimXMod()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const RXModulus&amp; <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getPhimXMod </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns reference to an RXModulus representing Phi_m(X) (mod p^r) </p>

</div>
</div>
<a id="a1c496a6f985fecf61f9a117d6c605cd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c496a6f985fecf61f9a117d6c605cd6">&#9670;&nbsp;</a></span>getPPowR()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual long <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getPPowR </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The value p^r. </p>

</div>
</div>
<a id="a1664ff2b064cf1d7e8c0aca13433b15d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1664ff2b064cf1d7e8c0aca13433b15d">&#9670;&nbsp;</a></span>getR()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual long <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getR </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The value r. </p>

</div>
</div>
<a id="a59d05e06d579ef86cc7d053d43e9717b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59d05e06d579ef86cc7d053d43e9717b">&#9670;&nbsp;</a></span>getTag()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a> <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the type tag: PA_GF2_tag or PA_zz_p_tag. </p>

</div>
</div>
<a id="aa63328efb58148204ed8a95287be7c19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa63328efb58148204ed8a95287be7c19">&#9670;&nbsp;</a></span>getZMStar()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a>&amp; <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::getZMStar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns reference to underlying <a class="el" href="classhelib_1_1_p_algebra.html" title="The structure of (Z/mZ)* /(p)">PAlgebra</a> object. </p>

</div>
</div>
<a id="a8b29b31503217f41ecf84e06bd30c908"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b29b31503217f41ecf84e06bd30c908">&#9670;&nbsp;</a></span>mapToSlots()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::mapToSlots </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_mapping_data.html">MappingData</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>mappingData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const RX &amp;&#160;</td>
          <td class="paramname"><em>G</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compute the maps for all the slots. In the current implementation, we if r &gt; 1, then we must have either deg(G) == 1 or G == factors[0]. </p>

</div>
</div>
<a id="a998b31a5d4f8f114b4582d5035decd63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a998b31a5d4f8f114b4582d5035decd63">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a>&amp; <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3e923834650c8fedd2139b416edd5950"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e923834650c8fedd2139b416edd5950">&#9670;&nbsp;</a></span>restoreContext()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived</a>&lt; type &gt;::restoreContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Restores the <a class="el" href="namespace_n_t_l.html">NTL</a> context for p^r. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/HElib/include/helib/<a class="el" href="_p_algebra_8h_source.html">PAlgebra.h</a></li>
<li>/HElib/src/<a class="el" href="_p_algebra_8cpp.html">PAlgebra.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
